package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 直保明细表
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cgnci_direct_insurance_detail")
@ApiModel(value = "CgnciDirectInsuranceDetailDO对象", description = "直保明细表")
public class CgnciDirectInsuranceDetailDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("明细ID")
    @TableId(value = "detail_id", type = IdType.ASSIGN_ID)
    private Long detailId;

    @ApiModelProperty("直保ID")
    private Long directId;

    @ApiModelProperty("rowKey")
    private String rowKey;

    /* @ApiModelProperty("险类")
    private String riskClass;

    @ApiModelProperty("险类代码")
    private String riskClassCode;

    @ApiModelProperty("险种")
    private String riskSubType;

    @ApiModelProperty("险种代码")
    private String riskSubTypeCode;*/

    @ApiModelProperty("保险标的")
    private String insuredObject;

    @ApiModelProperty("保险标的类型(1-在案;2-离案),码表值:onshoreOffshore")
    private String insuredType;

    @ApiModelProperty("保额/单次事故最大赔偿限额")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal maxCompensation;

    @ApiModelProperty("保费(含税)")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal premiumInclTax;

    @ApiModelProperty("税率")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal taxRate;

    @ApiModelProperty("保费(不含税)")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal premiumExclTax;

    @ApiModelProperty("免赔说明")
    private String deductibleDesc;

    @ApiModelProperty("离岸业务归属地")
    private String offshoreTerritory;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("更新时间")
    @TableField(update = "now()")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updateUser;


}
